﻿using WebMiddleware.SaveInfoService;

namespace MaterialTypeRecognition.Shell.SaveInfos
{
    [TypeMapFile(BaseDirectory = "ConfigurationFiles", FileName = "AppSetting.json")]
    public class AppSettingSaveInfo
    {
        private int? _rfidInterval;

        public int? RfidInterval
        {
            get
            {
                return _rfidInterval ?? 50;
            }
            set { _rfidInterval = value; }
        }

        public string SignalRHost { get; set; } = string.Empty;

        public string WhiteSignalAddress { get; set; } = string.Empty;

        public string YellowSignalAddress { get; set; } = string.Empty;

        public string RedSignalAddress { get; set; } = string.Empty;
    }
}
